import request from '@/utils/request'

// 查询设备故障列表列表
export function listDeviceFailureInfo(query) {
  return request({
    url: '/device/deviceFailureInfo/list',
    method: 'get',
    params: query
  })
}

// 查询设备故障列表详细
export function getDeviceFailureInfo(id) {
  return request({
    url: '/device/deviceFailureInfo/' + id,
    method: 'get'
  })
}

// 新增设备故障列表
export function addDeviceFailureInfo(data) {
  return request({
    url: '/device/deviceFailureInfo',
    method: 'post',
    data: data
  })
}

// 修改设备故障列表
export function updateDeviceFailureInfo(data) {
  return request({
    url: '/device/deviceFailureInfo',
    method: 'put',
    data: data
  })
}

// 删除设备故障列表
export function delDeviceFailureInfo(id) {
  return request({
    url: '/device/deviceFailureInfo/' + id,
    method: 'delete'
  })
}
